package com.ruoyi.system.controller;

import com.ruoyi.system.domain.TbPrivateFacility;
import com.ruoyi.system.domain.TbPublicFacility;
import com.ruoyi.system.service.TbPublicFacilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.Array;
import java.util.List;

@RestController
@RequestMapping("gong")
public class PubController {

    @Autowired
    TbPublicFacilityService tbPublicFacilityService;

    @RequestMapping("selGong")
    public List<TbPublicFacility> selgong(){
        List<TbPublicFacility> list=tbPublicFacilityService.selgong();
        return list;
    }

    @RequestMapping("selFang")
    public List<TbPrivateFacility> selfang(){
        List<TbPrivateFacility> list=tbPublicFacilityService.selfang();
        return list;
    }
}
